<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Task_no')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-task_no" data-rule="required" class="form-control" name="row[task_no]" type="text" value="{$row.task_no}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('任务酬劳')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-task_title" data-rule="required" class="form-control" name="row[task_title]" type="text" value="{$row.task_title}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sj_img')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-sj_img" data-rule="required" class="form-control" size="50" name="row[sj_img]" type="text" value="{$row.sj_img}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-sj_img" class="btn btn-danger plupload" data-input-id="c-sj_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-sj_img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-sj_img" class="btn btn-primary fachoose" data-input-id="c-sj_img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-sj_img"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-sj_img"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Xg_img')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-xg_img" data-rule="required" class="form-control" size="50" name="row[xg_img]" type="text" value="{$row.xg_img}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-xg_img" class="btn btn-danger plupload" data-input-id="c-xg_img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-xg_img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-xg_img" class="btn btn-primary fachoose" data-input-id="c-xg_img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-xg_img"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-xg_img"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Push_position')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-push_position" data-rule="required" class="form-control selectpicker" name="row[push_position]">
                {foreach name="pushPositionList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.push_position"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sk_start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sk_start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[sk_start_time]" type="text" value="{$row.sk_start_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sk_end_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sk_end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[sk_end_time]" type="text" value="{$row.sk_end_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Task_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-task_price" data-rule="required" class="form-control" step="0.01" name="row[task_price]" type="number" value="{$row.task_price}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Task_num')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-task_num" data-rule="required" class="form-control" name="row[task_num]" type="number" value="{$row.task_num}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Show_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-show_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[show_time]" type="text" value="{$row.show_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Get_start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-get_start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[get_start_time]" type="text" value="{$row.get_start_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Get_end_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-get_end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[get_end_time]" type="text" value="{$row.get_end_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_brand_list')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_brand_list" data-rule="required" class="form-control" name="row[car_brand_list]" type="text" value="{$row.car_brand_list}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_type_list')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_type_list" data-rule="required" class="form-control" name="row[car_type_list]" type="text" value="{$row.car_type_list}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Car_color_list')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_color_list" data-rule="required" class="form-control" name="row[car_color_list]" type="text" value="{$row.car_color_list}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address_list')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-address_list" data-rule="required" class="form-control " rows="5" name="row[address_list]" cols="50">{$row.address_list}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Task_desc')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-task_desc" data-rule="required" class="form-control " rows="5" name="row[task_desc]" cols="50">{$row.task_desc}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reward_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-reward_price" data-rule="required" class="form-control" step="0.01" name="row[reward_price]" type="number" value="{$row.reward_price}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Task_status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="taskStatusList" item="vo"}
            <label for="row[task_status]-{$key}"><input id="row[task_status]-{$key}" name="row[task_status]" type="radio" value="{$key}" {in name="key" value="$row.task_status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Check_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-check_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[check_time]" type="text" value="{$row.check_time|datetime}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Refuse_text')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-refuse_text" data-rule="required" class="form-control" name="row[refuse_text]" type="text" value="{$row.refuse_text}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
